﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Aandelendelen.Obs;
using NLog;

namespace Aandelendelen
{
	public partial class LogOut : BaseForm
	{
		protected void Page_Load(object sender, EventArgs e)
		{
			if (this.Userinfo != null)
			{
				if (this.Userinfo.IsSecret == false)
					logger.Info("User '{0}' logged out", this.Userinfo.Gebruikersnaam);

				Session.Remove("userinfo");
			}

			Response.Redirect("/", true);
		}
	}
}